package org.linlinjava.litemall.admin.web.order_manage;

import org.linlinjava.litemall.core.util.ResponseUtil;
import org.linlinjava.litemall.db.service.oder_manage.AgedMallOrderDbService;
import org.linlinjava.litemall.db.util.PageUtils;
import org.linlinjava.litemall.db.vo.order_manage.StoreOrderAdminQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 门店订单管理
 * @author houzb
 * @Description
 * @create 2021-08-31 21:43
 */
@RestController
@RequestMapping("/storeOrderAdmin")
public class AgedMallStoreOrderAdminController {
    @Autowired
    private AgedMallOrderDbService agedMallOrderDbService;

    /**
     * @api {post} /storeOrderAdmin/list
     * @apiGroup 门店管理-运维订单
     * @apiVersion 0.1.0
     * @apiDescription 添加抵扣金规则列表
     * @apiSuccess {int} errno 请求状态码，0表示成功,其它参考状态码文档
     * @apiSuccess {String} errmsg 结果消息说明
     * @apiSuccess {Object} data 请求响应的数据
     * @apiSuccessExample {json} Success-Response:
     * {
     *     "errno": "请求状态码，0表示成功，其它参考状态码文档",
     *     "errmsg": "请求成功/失败说明",
     *     "data": null
     * }
     */
    @RequestMapping("/list")
    public Object getApageAdminOrder(@RequestBody StoreOrderAdminQuery storeOrderAdminQuery) {
        Object object = agedMallOrderDbService.getApageAdminOrder(storeOrderAdminQuery);
        return ResponseUtil.ok(object);
    }
}
